/**
 * 
 */
package com.mycompany.client;

import java.util.Map;

import com.mycompany.client.i18n.Context;
import com.mycompany.client.i18n.DataConstants;
import com.smartgwt.client.widgets.Button;
import com.smartgwt.client.widgets.Canvas;

/**
 * @author coral.ma
 *
 */
public abstract class CoralPage {

	protected DataConstants i18n = Context.i18N();
	protected boolean isWindow = false;
	protected Button[] windowButtons = new Button[0];
	protected String NAME = "Coral Page";
	protected String DESCRIPTION = "Please change the PageName and PageDescription values in your new Page.";
	protected String ICON;
	
	public abstract Canvas getViewPage();

	public Map getValues() {
		return null;
	}
	
	public String getPageDescription() {
		return DESCRIPTION;
	}

	public String getPageName() {
		return NAME;
	}
	
	public String getIcon() {
		return ICON;
	}
	
	/**
	 * @return the isWindow
	 */
	public boolean isWindow() {
		return isWindow;
	}

	/**
	 * @param isWindow the isWindow to set
	 */
	public void setWindow(boolean isWindow) {
		this.isWindow = isWindow;
	}
	
	/**
	 * @return the windowButtons
	 */
	public Button[] getWindowButtons() {
		return windowButtons;
	}

	/**
	 * @param windowButtons the windowButtons to set
	 */
	public void setWindowButtons(Button... windowButtons) {
		this.windowButtons = windowButtons;
	}
}
